using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Mojito.Data.Entities;

namespace Mojito.Data
{
    public class MainDbContext : DbContext
    {
        public DbSet<Request> Request { get; set; }
        public DbSet<RequestDirectory> RequestDirectory { get; set; }
        public DbSet<RequestShare> RequestShare { get; set; }
        public DbSet<RequestExample> RequestExample { get; set; }
        public DbSet<Sys_Account> Sys_Account { get; set; }
        public DbSet<RequestEnviroment> RequestEnviroment { get; set; }

        public IConfiguration Configuration { get; }

        public MainDbContext(IConfiguration configuration, DbContextOptions<MainDbContext> options) : base(options)
        {
            Configuration = configuration;
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (!optionsBuilder.IsConfigured)
            {}
        }
    }
}
